﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;

namespace NLCER
{
    public class WinLog
    {
        public static void Addlog(string logconnt,string sourceName)
        {
            if (!EventLog.SourceExists(sourceName))
            {
                EventLog.CreateEventSource(sourceName, "Application");
            }
            EventLog.WriteEntry(sourceName, logconnt, EventLogEntryType.Information);
        }
    }
}
